package top.mable.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.mable.service.GpPayFeeInfoService;
import top.mable.utils.dto.GpPayFeeInfoDTO;
import top.mable.utils.dto.Result;

/**
 * @author taffywen
 * @date 2022/3/21 23:10
 */

@RestController
@RequestMapping("/product")
public class PayFeeinfoController {

    @Autowired
    private GpPayFeeInfoService gpPayFeeInfoService;


    @RequestMapping("/queryById")
    public Result queryById(@RequestBody GpPayFeeInfoDTO gpPayFeeInfoDTO){
        GpPayFeeInfoDTO byId = gpPayFeeInfoService.getById(gpPayFeeInfoDTO.getId());

        return Result.success(byId);
    }
}
